package com.jyu.apts.dto;

import com.jyu.apts.entity.ItemProcessRecordInfo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ItemProcessRecordInfoDto {
	long id;//主键
	String title;//标题
	String description;//描述
	String urls;
	ItemProcessRecordDto itemProcessRecord;
	public ItemProcessRecordInfoDto convert(ItemProcessRecordInfo itemProcessRecordInfo) {
		setId(itemProcessRecordInfo.getId());
		setTitle(itemProcessRecordInfo.getTitle());
		setDescription(itemProcessRecordInfo.getDescription());
		setUrls(itemProcessRecordInfo.getUrls());
		setItemProcessRecord(new ItemProcessRecordDto().convert(itemProcessRecordInfo.getItemProcessRecord()));
		return this;
	}
}
